package com.bravo.mvpkotlin.ui.main

import com.bravo.mvpkotlin.data.DataManager
import com.bravo.mvpkotlin.ui.ActivityScope
import dagger.Module
import dagger.Provides

/**
 * Created by Administrator on 2017/6/22.
 */
@Module
class MainActivityModule(val mainViews: MainActivity){

    @ActivityScope
    @Provides
    fun providePersenter(dataManager: DataManager): MainPersenter {
        return MainPersenter(mainViews,dataManager)
    }

    @ActivityScope
    @Provides
    fun provideMainAdapter(): MainAdapter {
        return MainAdapter(mainViews)
    }
}